package com.zyg.dao;

import com.zyg.pojo.Grade;
import com.zyg.pojo.Grade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GradeMapper {
    List<Grade> getGradeList();

    List<Grade> findAll(@Param("grade") Grade grade, @Param("offset") int offset, @Param("pageSize") int pageSize);

    int count(Grade grade);

    int addGrade(Grade grade);

    Grade findGradeById(int id);

    int updateGrade(Grade grade);

    int deleteGrade(int id);
}
